package com.woniu.user.service.impl;

import com.woniu.user.entity.Complain;
import com.woniu.user.mapper.ComplainMapper;
import com.woniu.user.service.ComplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021/5/19
 * <p>
 * 投诉接口实现类
 */

@Service
public class ComplainServiceImpl implements ComplainService {

    @Autowired
    ComplainMapper complainMapper;

    @Override
    public Boolean addComplain(Complain complain) {

        return complainMapper.addComplain(complain);
    }

    @Override
    public Boolean updateStatus(Integer id) {
        return complainMapper.updateStatusById(id);
    }

    @Override
    public List<Complain> selectAllComplain(Integer status) {

        return complainMapper.selectAllComplain(status);
    }
}
